# load source files and header files
set(inc ../include)
file(GLOB sources *.cc)
file(GLOB headers ${inc}/*.h)

source_group("Header Files" FILES ${headers})
source_group("Source Files" FILES ${sources})

# configure libraries
if (WIN32)
  set(lib_list devil ilu)
else ()
  set(lib_list IL ILU)
endif (WIN32)

set(target_name owl_eye)
add_library(${target_name} ${LIB_TYPE} ${sources} ${headers})

set_target_properties(${target_name} PROPERTIES OUTPUT_NAME_DEBUG "owl_eye_d")
set_target_properties(${target_name} PROPERTIES OUTPUT_NAME_RELEASE "owl_eye")
set(libs ${lib_list} optimized axle debug axle_d)
target_link_libraries(${target_name} ${libs})

message(STATUS "lib_list=${lib_list}")
